project("TimyRPC")
cmake_minimum_required(VERSION 3.10)

# 生成debug 版本 可以进行gdb调试
set(CMAKE_BUILD_TYPE "Debug")

set(CMAKE_CXX_FLAGS  "-std=c++11")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

include_directories(${PROJECT_SOURCE_DIR})

link_directories(${PROJECT_SOURCE_DIR}/lib)
link_directories(/usr/local/lib)


add_subdirectory(tinyrpc/base)
add_subdirectory(tinyrpc/net)
add_subdirectory(tinyrpc/rpc)
add_subdirectory(example)
add_subdirectory(test)